package org.example.psn.core.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.example.system.common.bean.BaseEntity;

/**
 * <p>
 * 组织与权限关系
 * </p>
 *
 * @author Joey
 * @since 2021-05-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="RelGroupRole对象", description="组织与权限关系")
public class RelGroupRole extends BaseEntity {

    private static final long serialVersionUID=1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "组织id")
    @TableField("groupId")
    private Long groupId;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "权限id")
    @TableField("roleId")
    private Long roleId;




}
